import { init } from 'snabbdom'
import { classModule } from 'snabbdom/modules/class'
import { propsModule } from 'snabbdom/modules/props'
import { styleModule } from 'snabbdom/modules/style'
import { eventListenersModule } from 'snabbdom/modules/eventlisteners'

let patch = init([classModule, propsModule, styleModule, eventListenersModule])
function compiler (oldVnode, vnode) {
  console.log('patch')
  return patch(oldVnode, vnode)
}

export default compiler
